#ifndef MYEXCEPTION_HPP_INCLUDED
#define MYEXCEPTION_HPP_INCLUDED

#include <string>
#include <exception>

class MyException:public std::exception{
    public:
          MyException(const std::string m):msg(m){}
          virtual ~MyException(void)throw(){};
          const char* what()const throw(){return msg.c_str();}
    private:
    std::string msg;
};

class ClientDisconnectedException: public std::exception{
	public:
		const char* what() const throw(){return "El cliente se desconecto\n";}
};

class FileDoesntExistException: public std::exception{
	public:
		const char* what() const throw(){return "Se intento borrar/updatear un archivo que no existe en el indice.\n";}
};

#endif // MYEXCEPTION_HPP_INCLUDED
